<?php
/**
 * Created by PhpStorm.
 * User: xckj
 * Date: 2018/7/10
 * Time: 16:18
 */
use app\assets\AppAsset;
use utils\HelperSearch;
use yii\helpers\Url;
use yii\widgets\LinkPager;

AppAsset::register($this);
$this->title = "公告栏";
?>
<?php $this->beginBlock('keyword'); ?>
<meta name="Keywords" content="郁姐网,淘商品,淘好货,淘宝好商品,代购,担保购买,优惠券,代金券,优惠券网,网购优惠券,电子优惠券,内部优惠券,淘宝,天猫,京东,苏宁,唯品会,聚美优品,网易,灵山优惠券,钦州优惠券,平南优惠券"/>
<meta name="Description" content="郁姐优惠券网免费领取肯德基KFC、麦当劳、淘宝天猫、唯品会、聚美优品、京东、好乐买、汉堡王、必胜客、德克士、苏宁、网易、当当网、一号店等电子购物优惠券。还有更多代金券、红包、优惠券怎么领取和使用、设置等方法攻略！"/>
<meta name="location" content="province=广西;city=钦州;coord=108.63879805642,21.973350465313">
<?php $this->endBlock(); ?>
<table class="table table-bordered table-striped">
    <tr>
        <th>日期</th>
        <th>公告</th>
    </tr>
    <?php if(!empty($list)) :
        foreach($list as $k=> $vo):?>
        <tr>
            <td><?=$vo['create_at']?></td>
            <td><a href="<?=Url::to(["search/info",'id'=>$vo['id']])?>"><?=$vo['title']?> >>>查看详情</a></td>
        </tr>
        <?php endforeach;?>
    <?php else:?>
        foreach($list as $k=> $vo):?>
        <tr>
            <td colspan="2">暂无公告</td>
        </tr>
    <?php endif;?>
</table>
<div id="pager">
    <?=LinkPager::widget([
        'pagination' => $pager,
    ]);?>
</div>